import request from '@/utils/request'


// 获取菜单
export const getPermissionListApi = () => {
  return request.get(`/admin/acl/permission`)
}


// 添加菜单
export const savePermissionApi = (per) => {
  return request.post(`/admin/acl/permission/save`, per)
}


// 修改菜单
export const updatePermissionApi = (per) => {
  return request.put(`/admin/acl/permission/update`, per)
}



// 删除菜单
export const deletePermissionApi = (id) => {
  return request.delete(`/admin/acl/permission/remove/${id}`)
}
